<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@include file="/WEB-INF/jsp/common/taglib.jsp"%>
<script type="text/javascript">
	var list;
	$(function() {
		list = lyGrid({
			pagId : 'paging',
			l_column : [{
				colkey : "name",
				name : "操作人"
			}, {
				colkey : "userip",
				name : "IP"
			}, {
				colkey : "module",
				name : "module"
			}, {
				colkey : "methods",
				name : "操作",
				renderData : function(rowindex, data, rowdata, column) {
					var s = '<lable style="cursor: pointer;" onmouseover="Big(this);" onmouseout="Hide()">'+data+'</lable>';
					return s;
				} 
			}, {
				colkey : "description",
				name : "描述",
				renderData : function(rowindex, data, rowdata, column) {
					var s = '<lable style="cursor: pointer;" onmouseover="Big(this);" onmouseout="Hide()">'+data+'</lable>';
					return s;
				} 
			},{
				colkey : "actiontime",
				name : "操作时间",
				isSort : true
			} ],
			jsonUrl : '${ctx}/systemLog/findByPage.shtml',
			data:{
				type : 'error'
			},
			serNumber : true
		});
		$(document).mousemove(function (e) {
			document.getElementById("pagex").value = e.pageX-50; //pageX() 属性是鼠标指针的位置，相对于文档的左边缘。
			document.getElementById("pagey").value = e.pageY+30;//pageY() 属性是鼠标指针的位置，相对于文档的上边缘。
		});
	})
	function loadList(){
		list.loadData({
			type:'error'
		});
		parent.autoHeight();
	}
	function Big(obj){
		$("#str").css({
			"display": "block",
			//调节div的位置
			//"left" : document.getElementById('pagex').value,
			//"top" : document.getElementById('pagey').value
		});
		document.getElementById("str").innerHTML=obj.innerHTML;
	}
	function Hide(){
		$("#str").css({
			 "display": "none"
		});
		document.getElementById("str").innerHTML='';
	}
</script>
<div class="table-responsive">
	<input type="hidden" id="pagex" />
	<input type="hidden" id="pagey" />
	<div id="paging" class="pagclass"></div>
</div>
<div id="str" style="position: absolute;background-color: yellow;"  ></div>
